//
//  WBStatusToolBar.swift
//  仿微博
//
//  Created by apple on 2016/12/28.
//  Copyright © 2016年 apple. All rights reserved.
//

import UIKit

class WBStatusToolBar: UIView {
    
    
    var viewModel: WBStatusViewModel? {
    
        didSet {
            
//        retweetedButton.setTitle("\(viewModel?.status.reposts_count)", for: [])
//        commentButton.setTitle("\(viewModel?.status.comments_count)", for: [])
//        likeButton.setTitle("\(viewModel?.status.attitudes_count)", for: [])
            
            retweetedButton.setTitle(viewModel?.retweetedStr, for: [])
            commentButton.setTitle(viewModel?.commentStr, for: [])
            likeButton.setTitle(viewModel?.likeStr, for: [])
        
        }
    
    
    }
  /// 转发
  @IBOutlet weak var retweetedButton: UIButton!
    
  /// 评论
  @IBOutlet weak var commentButton: UIButton!
    
  /// 点赞
  @IBOutlet weak var likeButton: UIButton!
   
}
